package com.erp.database.bean;

import java.util.HashMap;

public class DataTableParamRequest extends DataTableRequest {
	private HashMap<String, Object> param;
	
	public DataTableParamRequest(DataTableRequest dataTableRequest) {
		super.setColumns(dataTableRequest.getColumns());
		super.setSearch(dataTableRequest.getSearch());
	}

	public HashMap<String, Object> getParam() {
		return param;
	}

	public void setParam(HashMap<String, Object> param) {
		this.param = param;
	}
	
	public void addParam(String key, Object value) {
		if(param == null) {
			param = new HashMap<String, Object> ();
		}
		param.put(key, value);
	}
}
